package com.whatever;

import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.webkit.*;
import android.widget.*;

public class BrowserActivity extends Activity implements OnClickListener {
    
	private static WebView webView;
	private static Button[] button;
	private static EditText textBox;
	private static AlertDialog.Builder alert;
	private static int[] buttonMap = {
		R.id.button0,
		R.id.button1,
		R.id.button2
	};
	
	/** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        webView = (WebView)findViewById(R.id.webView0);
        textBox = (EditText)findViewById(R.id.editText0);
        button[0] = (Button)findViewById(buttonMap[0]);
        button[0].setText("Back");
        
        //System.out.println(getResources().getConfiguration().orientation);
    }

	public void onClick(View v) {
		alert = new AlertDialog.Builder(this).setTitle("Something").setMessage("This is a dialog box!").setPositiveButton("Positive", new DialogInterface.OnClickListener() {

			public void onClick(DialogInterface dialog, int which) {
				// TODO Auto-generated method stub
			}
		}).setNeutralButton("Neutral", new DialogInterface.OnClickListener() {
			
			public void onClick(DialogInterface dialog, int which) {
				// TODO Auto-generated method stub
			}
		}).setNegativeButton("Negative", new DialogInterface.OnClickListener() {
			
			public void onClick(DialogInterface dialog, int which) {
				// TODO Auto-generated method stub
			}
		});
		alert.show();
	}
}